package cn.bs.busuo.front.account.dao.persist.mapper;

import cn.bs.busuo.front.account.pojo.entity.SightFavorite;
import cn.bs.busuo.front.account.pojo.vo.FavoriteSightVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface SightFavoriteMapper extends BaseMapper<SightFavorite> {
    int selectFavoriteSightIfExits(Long sightId, Long userId);

    List<FavoriteSightVO> listFavoriteSight(Long id);

    int deleteByUserIdAndSightId(Long sightId, Long userId);
}
